import os
import zipfile
import logging


def unzip_file(file_name, target):
    logging.info('unzip file {}'.format(file_name))
    with zipfile.ZipFile(file_name) as zf:
        zf.extractall(path=target)
    logging.info('file {} unzipped.'.format(file_name))